import request from '@/utils/request'

export default{
    login(username,userpass){
        return request({
            method:'post',
            url:'/dev-api/user/login',
            data:{
                username,
                userpass
            }
        })
    },
    checkToken(token){
        return request({
            method:"get",
            url:"/dev-api/user/verify",
            params:{token}
        })
    },
    addRess(username,phonenum,address){
        return request({
            method:"post",
            url:"/dev-api/user/addPhoneAndAddress",
            data:{
                username,phonenum,address
            }
        })
    }
}